package com.example.mydemo103.AdvFragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;

import com.example.mydemo103.LgoinActivity;
import com.example.mydemo103.R;

public class FragmentThree103 extends Fragment {
    private Button btn;
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @NonNull ViewGroup container,
                             @NonNull Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_fragmentthree103,container,false);
        btn = (Button) view.findViewById(R.id.button);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getActivity(), LgoinActivity.class);
                startActivity(intent);

            }
        });
        return view;

    }


}
